﻿function Button(dom) {
    this._dom = dom;
}

Button.prototype = {
    onClick: function(func) {
        this._dom.click(func);
    },

    show: function() {
        this._dom.removeClass("disabled");
    },

    hide: function() {
        this._dom.addClass("disabled");
    },

    setTitle: function(title){
        this._dom.attr('title', title);
    }
};
